#pragma once

#ifndef MACROS_H
#define MACROS_H

#define RegA	m_af.byte.hi
#define RegF	m_af.byte.lo
#define RegB	m_bc.byte.hi
#define RegC	m_bc.byte.lo
#define RegD	m_de.byte.hi
#define RegE	m_de.byte.lo
#define RegH	m_hl.byte.hi
#define RegL	m_hl.byte.lo
#define RegAF	m_af.word
#define RegBC	m_bc.word
#define RegDE	m_de.word
#define RegHL	m_hl.word
#define RegPC	m_pc
#define RegSP	m_sp
#define RegIX	m_ix.word
#define RegIY	m_iy.word
#define RegIXH	m_ix.byte.hi
#define RegIXL	m_ix.byte.lo
#define RegIYH	m_iy.byte.hi
#define RegIYL	m_iy.byte.lo
#define RegI	m_i

#define RegAF1	m_af1.word
#define RegBC1	m_bc1.word
#define RegDE1	m_de1.word
#define RegHL1	m_hl1.word

#define Sign(x) ((x & 0x80))

#endif
